<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <script src="js/axios.min.js"></script>
</head>
<body>
    <form action="param/demo2" method="post">
        <button>POST请求</button>
    </form>
    <button onclick="post()">POST请求</button>
    <hr>
<form action="param/demo8" method="get">
    <button>GET请求(请求体)</button>
</form>
<form action="param/demo8" method="post" enctype="application/x-www-form-urlencoded">
    <button>POST请求(请求体 application/x-www-form-urlencoded)</button>
</form>

    <form action="param/demo8" method="post" enctype="multipart/form-data">
        <button>POST请求(请求体 multipart/form-data)</button>
    </form>
</body>

<script>
    function post(){
        axios.post("param/demo2").then(res=>{
            alert(res.data);
        })
    }
</script>
</html>